Repository navigation
[V3] Use the full-precision tint color in the CPU layer effects - #437
Merged
Merged
Conversation
The CPU acrylic, drop shadow, backdrop drop shadow, glow and inner shadow effects converted the tint color to Rgba32 before they built the color matrix. That cut the tint to 8 bits for each channel, while the WebGPU effects use the full-precision color. The CPU effects now use Color.ToScaledVector4 with the same alpha representation as their WebGPU counterparts.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release/3.1.x #437 +/- ##
=============================================
Coverage 80% 80%
=============================================
Files 235 235
Lines 29647 29647
Branches 3409 3409
=============================================
+ Hits 23992 23993 +1
Misses 4698 4698
+ Partials 957 956 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prerequisites
Description
Back-port of the layer effect tint fix to 3.1.x.
Rgba32before they built the color matrix. That cut the tint to 8 bits for each channel.Color.ToScaledVector4(PixelAlphaRepresentation.Unassociated), the same call as the WebGPU effects.